package com.ntanh.mealplanner.main;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.ntanh.mealplanner.R;

public class FragmentMyPlan extends Fragment {

	public static final Integer FRAGMENT_ICON = R.drawable.ic_wallet;
	public static final Integer FRAGMENT_NAME = R.string.my_plan;

	ImageView ivIcon;
	TextView tvItemName;

	public FragmentMyPlan() {

	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {

		View view = inflater.inflate(R.layout.fragment_layout_my_plan, container, false);

		ivIcon = (ImageView) view.findViewById(R.id.frag4_icon);
		tvItemName = (TextView) view.findViewById(R.id.frag4_text);

		tvItemName.setText(view.getResources().getString(FRAGMENT_NAME));
		ivIcon.setImageDrawable(view.getResources().getDrawable(FRAGMENT_ICON));
		return view;
	}
}